﻿// Copyright (c)  MOKEYISH. All rights reserved.
// Licensed under the MIT License, See License.txt in the project root for license information.

namespace NSQL.Expressions.Functions
{
    public class ToNumberFunction : BaseExpression, IToNumberFunction
    {
        public IValueExpression Text { get; set; }
        public IStringExpression Format { get; set; }

        public ToNumberFunction(IValueExpression text, IStringExpression format = null)
        {
            Text = text;
            Format = format;
        }
        public override T Accept<T>(IExpressionVisitor<T> visitor) => visitor.Visit(this);
    }
}